<? include_once("config.php")?>
<!doctype html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no,width=device-width,height=device-height">
        <? require_once('title.php');?>
        <link href="favicon.ico" rel="shortcut icon">
        <link rel="stylesheet" href="css/common/swiper.css">
        <link rel="stylesheet" href="css/common/base.css">
        <link rel="stylesheet" href="css/common/media.css">
        <link rel="stylesheet" href="css/common/animation.css">
        <link rel="stylesheet" href="css/cases/style.css">
        <link rel="stylesheet" href="css/cases/allCasesNav.css">
    </head>
    <body>
        <div class="beginning left flex flex-align-items">
                <i class="line top"></i>
                <i class="line bottom"></i>
                <img src="img/common/beginningLogo.png" alt="入场logo图">
        </div>
        <div class="beginning right flex flex-align-items">
                <i class="line top"></i>
                <i class="line bottom"></i>
                <img src="img/common/beginningLogoTxt.png" alt="入场logo文字">
        </div>
        <div class="cutLetter flex flex-align-items flex-justify-content">
            <p>创意</p>
            <p class="mid">规范</p>
            <p>智能</p>
        </div>
        <div class="container horizontal">
            <? require_once('header.php');?>
            <main>
                 <div class="cases fluid ready">
                    <div class="contnHead flex">
                        <div class="title">
                            <p class="chn"><span>全部案例</span></p>
                            <p class="eng"><span>CASE</span></p>
                            <i class="tp horizontal"></i>
                            <i class="lft vertical"></i>
                            <i class="btm horizontal"></i>
                            <i class="rht vertical"></i>
                        </div>
                        <ul class="casesNav nav flex">
                            
                            <?
                                $protypeObj=protypelist("1","cn","4");
                                $protypeArr=$protypeObj['protypeArr'];
                                foreach($protypeArr as $protypeList){
                            ?> 
                            
                                <li>
                                    <p class="fNav cursor flex flex-align-items"><i class="line"></i><em><?=$protypeList->CALLED?></em></p>
                                    <div class="sonMenu">
                                        <ul>
                                                <?
                                                $protypeObj2=protypelist($protypeList->ID,"cn","20");
                                                $protypeArr2=$protypeObj2['protypeArr'];
                                                foreach($protypeArr2 as $protypeList2){
                                            ?> 
                                            <li class="flex flex-align-items"><i class="line"></i><a href="case.php?tid=<?=$protypeList2->ID?>&tid1=<?=$protypeList->ID?>"><?=$protypeList2->CALLED?></a></li>
                                            <? }?>	
                    
                                        </ul>
                                    </div>
                                </li>
                            <? }?>
                        
                                <div class="sonNavPalace">
                                    <ul class="box flex">

                                    </ul>
                                </div>
                                <?
                                $protypeObj=protypelist("1","cn","6");
                                $protypeArr=$protypeObj['protypeArr'];
                                $f=0;
                                foreach($protypeArr as $protypeList){
                                $f++;
                                if($f>4){
                            ?> 
                            
                                <li>
                                    <p class="fNav cursor flex flex-align-items"><i class="line"></i><em><?=$protypeList->CALLED?></em></p>
                                    <div class="sonMenu">
                                        <ul>
                                                <?
                                                $protypeObj2=protypelist($protypeList->ID,"cn","20");
                                                $protypeArr2=$protypeObj2['protypeArr'];
                                                foreach($protypeArr2 as $protypeList2){
                                            ?> 
                                            <li class="flex flex-align-items"><i class="line"></i><a href="case.php?tid=<?=$protypeList2->ID?>&tid1=<?=$protypeList->ID?>"><?=$protypeList2->CALLED?></a></li>
                                            <? }?>	
                    
                                        </ul>
                                    </div>
                                </li>
                            <? }}?>
                                
                                
                                <div class="sonNavPalace">
                                    <ul class="box flex">

                                    </ul>
                                </div>
                            </ul>
                    </div>
                    <div class="contn">
                        <div class="box grid">
                            <div class="grid-sizer"></div>
			
								<?
								$linkurl = $_SERVER["PHP_SELF"]."?";
								$proObj=productlist("全部案例","","cn","0","9");
								$proArr=$proObj['proArr'];
								foreach($proArr as $proList){
								?>
								
								
                            <div class="grid-item">
                                <a href="casesd.php?pid=<?=$proList->ID?>">
                                    <p class="pic">
                                        <img src="upload/<?=$proList->SMALLPIC?>" alt="<?=$proList->PRONAME?>">
                                    </p>
                                    <p class="addr flex flex-align-items"><span class="flex flex-align-items"><img src="img/index/smBook.png" alt=""><?=$proList->PRONAME?></span><span><?=$proList->MJ?></span></p>
                                </a>
                            </div>
	
					   <? }?>

                        </div>
                        <div class="choosePage flex flex-align-items flex-justify-content">
							 <?
							$proPagerShow=$proObj['pagerShow'];
							$proPagerShow->setFirstText('First');
							$proPagerShow->setPrevText('Previous');
							$proPagerShow->setNextText('Next');
							$proPagerShow->setLastText('Last');
							$proPagerShow->setStyle('2');
							$proPagerShow->lanAll = "Total:"; 
							$proPagerShow->lanItems = "";
							echo $proPagerShow->render(); 
							?>
                        </div>
                    </div>
                </div>
            </main>
            <? require_once('footer.php');?>
        </div>
        
       
        <script src="js/common/swiper.js"></script>
        <script src="js/common/jquery.js"></script>
        <script src="js/common/common.js"></script>
        <script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
        <script src="js/all/cases.js"></script>
        <script src="js/common/animation.js"></script>
        
        <script src="js/common/choosePage.js"></script>
    </body>
</html>